package tool;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import tool.SystemUtils.Propskey;

public class ExecutorServiceTool {

	private static final int connection_max = SystemUtils.getIntProperty(Propskey.SERVER_CONNECTION_MAX);
	private static final ExecutorService service = Executors.newFixedThreadPool(connection_max);
	
	public final static void execute(Runnable runable) {
		service.execute(runable);
	} 
	
}
